package cn.itsy.dao.warninfo;

import cn.itsy.pojo.ResultPojo;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @description:
 * @author: MisterGay
 * @date: 2019-06-04 10:36
 */
@Repository(value = "warnInfoDaoimpl")
public class WarnInfoDaoimpl implements WarnInfoDao {
    @Resource(name = "jdbcTemplate")
    private JdbcTemplate jdbcTemplate;

    @Override
    public void insertWarnInfo(String sql, ResultPojo resultPojo) {
        this.jdbcTemplate.update(sql, null, resultPojo.getEmpid(), resultPojo.getEmpname(), resultPojo.getDname(),
                resultPojo.getName(), resultPojo.getWrname(), 1, resultPojo.getUserId());
    }
}
